package com.xiaozhen.system.service.impl;

import com.xiaozhen.common.core.domain.system.SysDictData;
import com.xiaozhen.system.dao.SysDictDataDao;
import com.xiaozhen.system.service.SysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/8/19 15:11
 * @description:
 */
@Service
public class SysDictDataServiceImpl implements SysDictDataService {

    @Autowired
    private SysDictDataDao sysDictDataDao;

    @Override
    public Integer insertDictData(SysDictData dictData) {
        return sysDictDataDao.insert(dictData);
    }

    @Override
    public Integer updateDictData(SysDictData dictData) {
        return sysDictDataDao.updateById(dictData);
    }

    @Override
    public Integer deleteDictDataById(Long dictCode) {
        return sysDictDataDao.deleteById(dictCode);
    }
}
